package decorator.coffeebar;


/**
 * @Author zhouyang.rosemary
 * @Description //饮品抽象类
 * @Date 17:09 2019-05-24
 * @Param
 * @return
 **/
public abstract class AbstractDrink {
    protected String description = "DEFAULT DESCRIPTION";
    private float price = 0f;

    //抽象方法
    public abstract float cost();

    public String getDescription() {
        return description+" --- "+this.getPrice();
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
